<!DOCTYPE HTML>
<html lang="zh-CN">
    

<head><meta name="generator" content="Hexo 3.9.0">
    <meta charset="utf-8">
    <meta name="keywords" content="Ubuntu Configure, UESTC CV DeepLearning MachineLearning 洪卫 sunhw Hongwei 计算机视觉 深度学习">
    <meta name="baidu-site-verification" content="fmlEuI34ir">
    <meta name="google-site-verification" content="KeoTn_OFy4ndJwXNmm2gMeQfPhd7alqE9vQDwI32KCY">
    <meta name="description" content="Ubuntu 安裝配置及其美化首先更新一下
sudo apt update &amp;amp;&amp;amp; sudo apt upgrade
一 基础软件安装
WPS Office 2019

首先，卸载 libreoffice (当然, 拆不拆卸看">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <title>Ubuntu Configure | 洪卫の博客</title>
    <link rel="icon" type="image/jpeg" href="/favicon.jpg">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">
    <!-- <link rel="stylesheet" type="text/css" href="/css/matery.css"> -->
    <!-- <link rel="stylesheet" type="text/css" href="/css/my.css"> -->
    <!-- <link rel="stylesheet" type="text/css" href="/libs/highlight/styles/atom-one-dark.css"> -->
    
    <!-- <style type="text/css">
        
            code[class*="language-"],
            pre[class*="language-"] {
                white-space: pre !important;
            }
        
    </style> -->

    <script src="/libs/jquery/jquery-2.2.0.min.js"></script>
    <!-- 今日诗词 -->
    <script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
    
    <!-- 百度统计 洪卫  shw2018 add 2019.09.13 -->
    <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?28c8c0fcedebccbf1e2bfc8b43c2e7b5";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
    </script>        
        
    <!-- 加入百度自动推送JS代码，全站激活，洪卫  shw2018 add 2019.08.13  -->
    
        <script>
            (function(){
                var bp = document.createElement('script');
                var curProtocol = window.location.protocol.split(':')[0];
                if (curProtocol === 'https') {
                    bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
                }
                else {
                    bp.src = 'http://push.zhanzhang.baidu.com/push.js';
                }
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(bp, s);
            })();
        </script>
    

<link rel="stylesheet" href="/css/prism-tomorrow.css" type="text/css">
<link rel="stylesheet" href="/css/prism-line-numbers.css" type="text/css"></head>


    <body>

        <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    <!-- 去掉 header 栏的 logo显示  洪卫 shw2018 2019.09.15-->
                    <!-- 
                    <img src="/favicon.jpg" class="logo-img" alt="LOGO">
                     -->
                    <span class="logo-span">洪卫の博客</span>
                </a>
            </div>
            


<!-- <a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fa fa-navicon"></i></a>
<ul class="right">
    
    <li class="hide-on-med-and-down">
        <a href="/" class="waves-effect waves-light">
            
            <i class="fa fa-home"></i>
            
            <span>首页</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/archives" class="waves-effect waves-light">
            
            <i class="fa fa-archive"></i>
            
            <span>归档</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/List" class="waves-effect waves-light">
            
            <i class="fa fa-heartbeat"></i>
            
            <span>清单</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/galleries" class="waves-effect waves-light">
            
            <i class="fa fa-photo"></i>
            
            <span>相册</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/about" class="waves-effect waves-light">
            
            <i class="fa fa-user-circle-o"></i>
            
            <span>关于我</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/contact" class="waves-effect waves-light">
            
            <i class="fa fa-envelope"></i>
            
            <span>留言板</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/friends" class="waves-effect waves-light">
            
            <i class="fa fa-address-book"></i>
            
            <span>友情链接</span>
        </a>
    </li>
    
    <li class="hide-on-med-and-down">
        <a href="/navi" class="waves-effect waves-light">
            
            <i class="fa fa-rocket"></i>
            
            <span>快捷导航</span>
        </a>
    </li>
    
    <li>
        <a href="#searchModal" class="modal-trigger waves-effect waves-light">
            <i id="searchIcon" class="fa fa-search" title="搜索"></i>
        </a>
    </li>
</ul> -->

<!-- 支持二级菜单特性 洪卫 shw2018 modify 2019.09.17  -->
<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fa fa-navicon"></i></a>
<ul class="right nav-menu">
    
      <li class="hide-on-med-and-down nav-item" >

        
            <a href="/" class="waves-effect waves-light">
              
                <i class="fa fa-home"></i>
              
              <span>首页</span>
            </a>

            
      </li>
    
      <li class="hide-on-med-and-down nav-item" >

        
              <a href="/archives" class="waves-effect waves-light">
                
                  <i class="fa fa-archive"></i>
                
                <span>归档</span>
                <i class="fa fa-chevron-down" aria-hidden="true"></i>
              </a>

            <ul class="sub-nav menus_item_child ">
              
                <li> 
                  <a href="/categories" >
                    
                      <i class="fa fa-bookmark" style="margin-top: -20px;"></i>
                    
                    <span>分类</span>
                  </a>
                </li>
              
                <li> 
                  <a href="/categories/技术" >
                    
                      <i class="fa fa-code" style="margin-top: -20px;"></i>
                    
                    <span>技术</span>
                  </a>
                </li>
              
                <li> 
                  <a href="/categories/生活" >
                    
                      <i class="fa fa-file-text-o" style="margin-top: -20px;"></i>
                    
                    <span>生活</span>
                  </a>
                </li>
              
                <li> 
                  <a href="/categories/随想" >
                    
                      <i class="fa fa-commenting-o" style="margin-top: -20px;"></i>
                    
                    <span>随想</span>
                  </a>
                </li>
              
                <li> 
                  <a href="/categories/资源" >
                    
                      <i class="fa fa-cloud-download" style="margin-top: -20px;"></i>
                    
                    <span>资源</span>
                  </a>
                </li>
               
            </ul>
          
      </li>
    
      <li class="hide-on-med-and-down nav-item" >

        
              <a href="/List" class="waves-effect waves-light">
                
                  <i class="fa fa-heartbeat"></i>
                
                <span>清单</span>
                <i class="fa fa-chevron-down" aria-hidden="true"></i>
              </a>

            <ul class="sub-nav menus_item_child ">
              
                <li> 
                  <a href="/List/music" >
                    
                      <i class="fa fa-music" style="margin-top: -20px;"></i>
                    
                    <span>音乐</span>
                  </a>
                </li>
              
                <li> 
                  <a href="/List/movies" >
                    
                      <i class="fa fa-film" style="margin-top: -20px;"></i>
                    
                    <span>视频</span>
                  </a>
                </li>
              
                <li> 
                  <a href="/books/" >
                    
                      <i class="fa fa-th-list faa-bounce" style="margin-top: -20px;"></i>
                    
                    <span>书单</span>
                  </a>
                </li>
              
                <li> 
                  <a href="/movies/" >
                    
                      <i class="fa fa-film faa-vertical" style="margin-top: -20px;"></i>
                    
                    <span>电影</span>
                  </a>
                </li>
               
            </ul>
          
      </li>
    
      <li class="hide-on-med-and-down nav-item" >

        
            <a href="/galleries" class="waves-effect waves-light">
              
                <i class="fa fa-photo"></i>
              
              <span>相册</span>
            </a>

            
      </li>
    
      <li class="hide-on-med-and-down nav-item" >

        
            <a href="/about" class="waves-effect waves-light">
              
                <i class="fa fa-user-circle-o"></i>
              
              <span>关于我</span>
            </a>

            
      </li>
    
      <li class="hide-on-med-and-down nav-item" >

        
            <a href="/contact" class="waves-effect waves-light">
              
                <i class="fa fa-envelope"></i>
              
              <span>留言板</span>
            </a>

            
      </li>
    
      <li class="hide-on-med-and-down nav-item" >

        
            <a href="/friends" class="waves-effect waves-light">
              
                <i class="fa fa-address-book"></i>
              
              <span>友情链接</span>
            </a>

            
      </li>
    
      <li class="hide-on-med-and-down nav-item" >

        
            <a href="/navi" class="waves-effect waves-light">
              
                <i class="fa fa-rocket"></i>
              
              <span>快捷导航</span>
            </a>

            
      </li>
    

    <li>
        <a href="#searchModal" class="modal-trigger waves-effect waves-light">
            <i id="searchIcon" class="fa fa-search" title="搜索"></i>
        </a>
    </li>

</ul>

<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/favicon.jpg" class="logo-img circle responsive-img">
        
        <div class="logo-name">洪卫の博客</div>
        <div class="logo-desc">
            
            电子科技大学 | 电子与通信工程 | 计算机视觉
            
        </div>
    </div>

    

    <!-- <ul class="menu-list mobile-menu-list">
        
        <li>
            <a href="/" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-home"></i>
                
                首页
            </a>
        </li>
        
        <li>
            <a href="/archives" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-archive"></i>
                
                归档
            </a>
        </li>
        
        <li>
            <a href="/List" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-heartbeat"></i>
                
                清单
            </a>
        </li>
        
        <li>
            <a href="/galleries" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-photo"></i>
                
                相册
            </a>
        </li>
        
        <li>
            <a href="/about" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-user-circle-o"></i>
                
                关于我
            </a>
        </li>
        
        <li>
            <a href="/contact" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-envelope"></i>
                
                留言板
            </a>
        </li>
        
        <li>
            <a href="/friends" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-address-book"></i>
                
                友情链接
            </a>
        </li>
        
        <li>
            <a href="/navi" class="waves-effect waves-light">
                
                <i class="fa fa-fw fa-rocket"></i>
                
                快捷导航
            </a>
        </li>
        
        
        <li><div class="divider"></div></li>
        <li>
            <a href="https://github.com/shw2018/shw2018.github.io" class="waves-effect waves-light" target="_blank">
                <i class="fa fa-github-square fa-fw"></i>Fork Me
            </a>
        </li>
        
    </ul> -->

<!-- 支持二级菜单特性 洪卫 shw2018 modify 2019.09.17  -->
<ul class="menu-list mobile-menu-list">
    
        <li class="m-nav-item">
                
                    <a href="/" class="waves-effect waves-light">
                        
                        <i class="fa fa-fw fa-home"></i>
                        
                        首页
                    </a>
              
            </li>
        
        <li class="m-nav-item">
                
                    <a href="javascript:;">
                            
                            <i class="fa fa-fw fa-archive"></i>
                            
                            归档
                            <span class="m-icon"><i class="fa fa-chevron-right"></i></span>
                    </a>
                <ul>
                  
                    <li> 
                      <a href="/categories" >
                           
                            <i class="fa fa-bookmark" style="left: 25px; position: absolute;"></i>
                       
                       <span>分类</span>
                      </a>
                    </li>
                  
                    <li> 
                      <a href="/categories/技术" >
                           
                            <i class="fa fa-code" style="left: 25px; position: absolute;"></i>
                       
                       <span>技术</span>
                      </a>
                    </li>
                  
                    <li> 
                      <a href="/categories/生活" >
                           
                            <i class="fa fa-file-text-o" style="left: 25px; position: absolute;"></i>
                       
                       <span>生活</span>
                      </a>
                    </li>
                  
                    <li> 
                      <a href="/categories/随想" >
                           
                            <i class="fa fa-commenting-o" style="left: 25px; position: absolute;"></i>
                       
                       <span>随想</span>
                      </a>
                    </li>
                  
                    <li> 
                      <a href="/categories/资源" >
                           
                            <i class="fa fa-cloud-download" style="left: 25px; position: absolute;"></i>
                       
                       <span>资源</span>
                      </a>
                    </li>
                   
                </ul>
              
            </li>
        
        <li class="m-nav-item">
                
                    <a href="javascript:;">
                            
                            <i class="fa fa-fw fa-heartbeat"></i>
                            
                            清单
                            <span class="m-icon"><i class="fa fa-chevron-right"></i></span>
                    </a>
                <ul>
                  
                    <li> 
                      <a href="/List/music" >
                           
                            <i class="fa fa-music" style="left: 25px; position: absolute;"></i>
                       
                       <span>音乐</span>
                      </a>
                    </li>
                  
                    <li> 
                      <a href="/List/movies" >
                           
                            <i class="fa fa-film" style="left: 25px; position: absolute;"></i>
                       
                       <span>视频</span>
                      </a>
                    </li>
                  
                    <li> 
                      <a href="/books/" >
                           
                            <i class="fa fa-th-list faa-bounce" style="left: 25px; position: absolute;"></i>
                       
                       <span>书单</span>
                      </a>
                    </li>
                  
                    <li> 
                      <a href="/movies/" >
                           
                            <i class="fa fa-film faa-vertical" style="left: 25px; position: absolute;"></i>
                       
                       <span>电影</span>
                      </a>
                    </li>
                   
                </ul>
              
            </li>
        
        <li class="m-nav-item">
                
                    <a href="/galleries" class="waves-effect waves-light">
                        
                        <i class="fa fa-fw fa-photo"></i>
                        
                        相册
                    </a>
              
            </li>
        
        <li class="m-nav-item">
                
                    <a href="/about" class="waves-effect waves-light">
                        
                        <i class="fa fa-fw fa-user-circle-o"></i>
                        
                        关于我
                    </a>
              
            </li>
        
        <li class="m-nav-item">
                
                    <a href="/contact" class="waves-effect waves-light">
                        
                        <i class="fa fa-fw fa-envelope"></i>
                        
                        留言板
                    </a>
              
            </li>
        
        <li class="m-nav-item">
                
                    <a href="/friends" class="waves-effect waves-light">
                        
                        <i class="fa fa-fw fa-address-book"></i>
                        
                        友情链接
                    </a>
              
            </li>
        
        <li class="m-nav-item">
                
                    <a href="/navi" class="waves-effect waves-light">
                        
                        <i class="fa fa-fw fa-rocket"></i>
                        
                        快捷导航
                    </a>
              
            </li>
        

        
        <li><div class="divider"></div></li>
        <li>
            <a href="https://github.com/shw2018/shw2018.github.io" class="waves-effect waves-light" target="_blank">
                <i class="fa fa-github-square fa-fw"></i>Fork Me
            </a>
        </li>
        
    </ul>

</div>

        </div>

        
            <style>
    .nav-transparent .github-corner {
        display: none !important;
    }

    .github-corner {
        position: absolute;
        z-index: 10;
        top: 0;
        right: 0;
        border: 0;
        transform: scale(1.1);
    }

    .github-corner svg {
        color: #0f9d58;
        fill: #fff;
        height: 64px;
        width: 64px;
    }

    .github-corner:hover .octo-arm {
        animation: a 0.56s ease-in-out;
    }

    .github-corner .octo-arm {
        animation: none;
    }

    @keyframes a {
        0%,
        to {
            transform: rotate(0);
        }
        20%,
        60% {
            transform: rotate(-25deg);
        }
        40%,
        80% {
            transform: rotate(10deg);
        }
    }
</style>

<a href="https://github.com/shw2018/shw2018.github.io" class="github-corner tooltipped hide-on-med-and-down" target="_blank"
   data-tooltip="Fork Me" data-position="left" data-delay="50">
    <svg viewBox="0 0 250 250" aria-hidden="true">
        <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
        <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
              fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
        <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
              fill="currentColor" class="octo-body"></path>
    </svg>
</a>
        
    </nav>

</header>

        



<div class="bg-cover pd-header post-cover" style="background-image: url('/medias/featureimages/14.jpg')">
    <div class="container">
        <div class="row">
            <div class="col s12 m12 l12">
                <div class="brand">
                    <div class="description center-align post-title">
                        Ubuntu Configure
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<main class="post-container content">

    
    <link rel="stylesheet" href="/libs/tocbot/tocbot.css">
<style>
    #articleContent h1::before,
    #articleContent h2::before,
    #articleContent h3::before,
    #articleContent h4::before,
    #articleContent h5::before,
    #articleContent h6::before {
        display: block;
        content: " ";
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
    }

    #articleContent :focus {
        outline: none;
    }

    .toc-fixed {
        position: fixed;
        top: 64px;
    }

    .toc-widget {
        padding-left: 20px;
    }

    .toc-widget .toc-title {
        margin: 35px 0 15px 0;
        padding-left: 17px;
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    .toc-widget ol {
        padding: 0;
        list-style: none;
    }

    #toc-content ol {
        padding-left: 10px;
    }

    #toc-content ol li {
        padding-left: 10px;
    }

    #toc-content .toc-link:hover {
        color: #42b983;
        font-weight: 700;
        text-decoration: underline;
    }

    #toc-content .toc-link::before {
        background-color: transparent;
        max-height: 25px;
    }

    #toc-content .is-active-link {
        color: #42b983;
    }

    #toc-content .is-active-link::before {
        background-color: #42b983;
    }

    #floating-toc-btn {
        position: fixed;
        right: 15px; /* 20px */
        bottom: 76px;
        padding-top: 15px;
        margin-bottom: 0;
        z-index: 998;
    }

    #floating-toc-btn .btn-floating {
        width: 48px;
        height: 48px;
    }

    #floating-toc-btn .btn-floating i {
        line-height: 48px;
        font-size: 1.4rem;
    }
</style>
<div class="row">
    <div id="main-content" class="col s12 m12 l9">
        <!-- 文章内容详情 -->
<div id="artDetail">
    <div class="card">
        <div class="card-content article-info">
            <div class="row tag-cate">
                <div class="col s7">
                    
                    <div class="article-tag">
                        
                            <a href="/tags/Ubuntu/" target="_blank">
                                <span class="chip bg-color">Ubuntu</span>
                            </a>
                        
                            <a href="/tags/Linux/" target="_blank">
                                <span class="chip bg-color">Linux</span>
                            </a>
                        
                    </div>
                    
                </div>
                <div class="col s5 right-align">
                    
                    <div class="post-cate">
                        <i class="fa fa-bookmark fa-fw icon-category"></i>
                        
                            <a href="/categories/Ubuntu/" class="post-category" target="_blank">
                                Ubuntu
                            </a>
                        
                    </div>
                    
                </div>
            </div>
            
            <div class="post-info">
                <div class="post-date info-break-policy">
                    <i class="fa fa-calendar-minus-o fa-fw"></i>发布日期:&nbsp;&nbsp;
                    2019-10-18
                </div>

                
                    <div class="post-date info-break-policy">
                        <i class="fa fa-calendar-minus-o fa-fw"></i>更新日期:&nbsp;&nbsp;
                        2019-12-22
                    </div>
                

                <div class="post-author info-break-policy">
                    <i class="fa fa-user-o fa-fw"></i>作者:&nbsp;&nbsp;
                    
                        洪卫
                    
                </div>

                
                    
                    <div class="info-break-policy">
                        <i class="fa fa-file-word-o fa-fw"></i>字数:&nbsp;&nbsp;
                        3.7k
                    </div>
                    

                    
                    <div class="info-break-policy">
                        <i class="fa fa-clock-o fa-fw"></i>时长:&nbsp;&nbsp;
                        16 分钟
                    </div>
                    
                
                
                
                        <span id="busuanzi_container_site_pv" style='display:none'></span>
                        <i class="fa fa-eye fa-fw"></i>浏览量:&nbsp;&nbsp;
                        <span id="busuanzi_value_page_pv" ></span>
    
                

            </div>
        </div>
        <hr class="clearfix">
        <div class="card-content article-card-content">
            <div id="articleContent">
                <h1 id="Ubuntu-安裝配置及其美化"><a href="#Ubuntu-安裝配置及其美化" class="headerlink" title="Ubuntu 安裝配置及其美化"></a>Ubuntu 安裝配置及其美化</h1><p>首先更新一下</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt update <span class="token operator">&amp;&amp;</span> <span class="token function">sudo</span> apt upgrade<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h1 id="一-基础软件安装"><a href="#一-基础软件安装" class="headerlink" title="一 基础软件安装"></a>一 基础软件安装</h1><ol>
<li>WPS Office 2019</li>
</ol>
<p>首先，卸载 libreoffice (当然, 拆不拆卸看你自己)</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt remove libreoffice-common<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p><a href="https://www.wps.cn/product/wpslinux/" target="_blank" rel="noopener">官网</a>下载 WPS office 2019 for Linux</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> dpkg -i wps-office_11.1.0.8372_amd64.deb<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>如果缺失字体，需要下载：<a href="https://pan.baidu.com/s/1eS6xIzo" target="_blank" rel="noopener">百度云链接</a>，解压后：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">mv</span> wps_symbol_fonts /usr/share/fonts/<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="2">
<li>中文输入法</li>
</ol>
<p>安装搜狗输入法，从<a href="https://pinyin.sogou.com/linux/?r=pinyin" target="_blank" rel="noopener">官网</a>下载最新的安装包，</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> dpkg -i sogoupinyin_2.2.0.0108_amd64.deb <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>解决依赖</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> -f<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>从设置找到语言-&gt;管理安装语言，待更新安装完成，设置为 <code>fcitx</code></p>
<p>重新登入，在右上角的托盘-&gt;配置，添加搜狗输入法</p>
<p>打开终端<br>安装输入法</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> im-switch libapt-pkg-perl fcitx fcitx-table-wbpy<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>设置fcitx为默认输入法：</p>
<pre class="line-numbers language-bash"><code class="language-bash">im-switch -s fcitx<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>注销，重新登录</p>
<ol start="3">
<li>PDF阅读器</li>
</ol>
<p>福昕阅读器下载.run格式的安装包，直接运行安装(如果没有执行权限，sudo chmod +x xxxxxxxxxxxxx.run)。</p>
<ol start="4">
<li>网易云音乐</li>
</ol>
<p><a href="https://music.163.com/#/download" target="_blank" rel="noopener">官网</a>更新了18.04的1.2.0版本，下载直接安装即可。</p>
<ol start="5">
<li>Chrome</li>
</ol>
<p>官网下载安装即可，有可能要翻墙。</p>
<ol start="6">
<li>视频播放器VLC</li>
</ol>
<pre><code>sudo apt install vlc</code></pre><ol start="7">
<li>编辑器 VS Code</li>
</ol>
<p>1 从VSCode官网下载deb软件包</p>
<p>下载地址：<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">https://code.visualstudio.com/</a></p>
<p>2 在Ubuntu中安装VSCode</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> dpkg -i xxx.deb<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>3 安装VSCode所需依赖（好像并没有什么依赖）</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> -f<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="8">
<li>安装Git</li>
</ol>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> <span class="token function">git</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="9">
<li>zsh(也可以安装fish)</li>
</ol>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> zsh
<span class="token comment" spellcheck="true"># 切换到zsh</span>
chsh -s /bin/zsh<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>
<p>安装Oh-my-zsh</p>
<pre class="line-numbers language-bash"><code class="language-bash">sh -c <span class="token string">"<span class="token variable"><span class="token variable">$(</span><span class="token function">wget</span> https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -<span class="token variable">)</span></span>"</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>安装插件highlight，高亮语法</p>
<pre class="line-numbers language-bash"><code class="language-bash"> <span class="token function">cd</span> ~/.oh-my-zsh/custom/plugins
 <span class="token function">git</span> clone git://github.com/zsh-users/zsh-syntax-highlighting.git<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<p>在Oh-my-zsh的配置文件中~/.zshrc中添加插件</p>
<pre class="line-numbers language-bash"><code class="language-bash">plugins<span class="token operator">=</span><span class="token punctuation">(</span> <span class="token punctuation">[</span>plugins<span class="token punctuation">..</span>.<span class="token punctuation">]</span> zsh-syntax-highlighting<span class="token punctuation">)</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>最后使配置生效</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">source</span> ~/.zshrc<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>这里需要重新登入一下，否则zsh只会在当前终端中应用。</p>
<ol start="10">
<li>QQ/TIM</li>
</ol>
<p>现在较为成功的解决方案为使用 wine 安装qq，推荐以下两个教程，但都有不同程度的问题，如果可以忍受可以使用：</p>
<pre><code>https://phpcj.org/wineqq/
https://github.com/askme765cs/Wine-QQ-TIM</code></pre><ol start="11">
<li><p>截图</p>
<p>shutter：sudo apt install shutter<br>Capturer: 我自己用qt开发的，依赖于ffmpeg，可以截图，录屏和GIF，还没有打包，如果会用qt可以先尝试下，项目地址：<a href="https://github.com/ffiirree/Capturer。" target="_blank" rel="noopener">https://github.com/ffiirree/Capturer。</a></p>
</li>
<li><p>启用“Minimize on Click”</p>
</li>
</ol>
<pre class="line-numbers language-bash"><code class="language-bash">gsettings <span class="token keyword">set</span> org.gnome.shell.extensions.dash-to-dock click-action <span class="token string">'minimize'</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<ol start="13">
<li>安装 Teamviewer<br>去<a href="https://www.teamviewer.com/en/download/linux/" target="_blank" rel="noopener">官网</a>下载deb安装包,安装即可</li>
</ol>
<p>命令行安装方法:</p>
<p>1 安装先决条件<br>TeamViewer是一个不在任何Ubuntu标准存储库中找到的外部软件。 我们将使用gdebi命令在Ubuntu 18.04 Bionic Beaver Linux上安装TeamViewer。 因此，让我们从安装gdebi-core软件包开始。 打开终端并输入：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> gdebi-core<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>2 下载最新的TeamViewer软件包</p>
<p>接下来，使用wget下载最新的TeamViewer软件包：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">wget</span> https://download.teamviewer.com/download/linux/teamviewer_amd64.deb<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>3 安装TeamViewer</p>
<p>最后，使用gdebi命令安装以前下载的软件包：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> gdebi teamviewer_amd64.deb<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h1 id="二-完整的-gnome-桌面"><a href="#二-完整的-gnome-桌面" class="headerlink" title="二 完整的 gnome 桌面"></a>二 完整的 gnome 桌面</h1><p>安裝完成后桌面左上角如果没有<code>应用程序</code>,<code>位置</code>等下拉项目, 感觉是 gnome 不完整, 可以单独安装完整的 gnome, 如下:<br>直接安装</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">apt-get</span>  <span class="token function">install</span> gnome  <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<pre class="line-numbers language-bash"><code class="language-bash">ubuntu 最简化安装使用 gnome 桌面             

1、gnome 桌面窗口管理程序

<span class="token variable">$sudo</span> <span class="token function">apt-get</span>  <span class="token function">install</span> gnome-shell  

2、安装 gnome 面板

<span class="token variable">$sudo</span> <span class="token function">apt-get</span>  <span class="token function">install</span>  gnome-panel  

3、安装 gnome 菜单

<span class="token variable">$sudo</span> <span class="token function">apt-get</span>  <span class="token function">install</span>   gnome-menus

4、安装 gnome-session

<span class="token variable">$sudo</span> <span class="token function">apt-get</span>  <span class="token function">install</span>  gnome-session

5、安装 gdm 会话切换器

<span class="token variable">$sudo</span> <span class="token function">apt-get</span>  <span class="token function">install</span>  gdm<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<h1 id="三-gnome-shell-扩展"><a href="#三-gnome-shell-扩展" class="headerlink" title="三 gnome shell 扩展"></a>三 gnome shell 扩展</h1><p>Ubuntu Software =&gt; Add-ons =&gt; Shell extensions，中安装</p>
<ol>
<li>NetSpeed</li>
</ol>
<p>监控网速<br>2. Coverflow Alt-Tab</p>
<p>优化Alt-Tab</p>
<ol start="3">
<li>Application menu</li>
</ol>
<p>左上角应用程序快捷管理</p>
<ol start="4">
<li>Place status indicator</li>
</ol>
<p><code>位置</code>信息, 快速导航磁盘文件位置</p>
<ol start="5">
<li>Clipboard Indicator</li>
</ol>
<p>这个扩展是使用来收集粘贴板的，对于写文档或者敲代码的人来说经常要复制少量文本粘贴到其余地方。但是系统只能复制一次，复制下一次的时候上次复制的内容就不见了。有了它以后可以保存复制过的内容，下次可以直接用。</p>
<h1 id="四-ubuntu系统重新分区、根目录扩容"><a href="#四-ubuntu系统重新分区、根目录扩容" class="headerlink" title="四 ubuntu系统重新分区、根目录扩容"></a>四 ubuntu系统重新分区、根目录扩容</h1><p>gparted是一款免费、开源的Linux下的具有图形用户界面的分区软件。</p>
<p>在Ubuntu中，可以使用如下命令安装：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> gparted<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>之后就可以使用如下命令启动gparted:</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> gparted<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>把空闲的分区移动到要扩容的分区的前面或者后面</p>
<p>然后到 windows 配合 diskgenuis 将空闲空间合并到所需扩容的分区</p>
<p>当然也可以直接在 windows 中,或者 win PE 系统里面直接调整分区大小,然后合并分区.</p>
<h1 id="五-ubuntu-自带-bash-配置美化"><a href="#五-ubuntu-自带-bash-配置美化" class="headerlink" title="五 ubuntu 自带 bash 配置美化"></a>五 ubuntu 自带 bash 配置美化</h1><p>对于终端的美化,可以通过对PS1变量进行赋值来进行.奶牛查阅了一些资料,DIY了如下的效果:</p>
<p>bash 美化 bash PS PS1</p>
<pre class="line-numbers language-bash"><code class="language-bash">vim .bashrc<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>添加下行</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">export</span> PS1<span class="token operator">=</span><span class="token string">"Time:\[\033[1;35m\]\T     \[\033[0m\]User:\[\033[1;33m\]\u     \[\033[0m\]Dir:\[\033[1;32m\]\w\[\033[0m\]\n\$"</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>退出vim</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">source</span> .bashrc<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>解释下具体含义:</p>
<p>颜色配置:</p>
<pre class="line-numbers language-bash"><code class="language-bash">\<span class="token punctuation">[</span>\033<span class="token punctuation">[</span>1<span class="token punctuation">;</span>31m\<span class="token punctuation">]</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>底线：ANSI 色彩控制语法。\033 声明了转义序列的开始，然后是 [ 开始定义颜色。<br>第一组数字：亮度 (普通0, 高亮度1, 闪烁2)。<br>第二组数字：顏色代码。<br>颜色: 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white</p>
<pre class="line-numbers language-bash"><code class="language-bash">\<span class="token punctuation">[</span>\033<span class="token punctuation">[</span>0m\<span class="token punctuation">]</span><span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>关闭 ANSI 色彩控制，通常置于尾端。<br>显示内容配置:</p>
<pre class="line-numbers language-bash"><code class="language-bash">\a     ASCII响铃字符 <span class="token punctuation">(</span>07<span class="token punctuation">)</span>
\d     “周 月 日”格式的日期
\D<span class="token punctuation">{</span>format<span class="token punctuation">}</span>   参数format被传递给strftime<span class="token punctuation">(</span>3<span class="token punctuation">)</span>来构造自定格式的时间并插入提示符中；该参数为空时根据本地化设置自动生成格式。
\e     ASCII转义字符（ESC<span class="token punctuation">)</span> <span class="token punctuation">(</span>033<span class="token punctuation">)</span>
\h     主机名在第一个点号前的内容
\H     完全主机名
\j     shell当前管理的任务数
\l     shell终端设备的基本名称
\n     新行
\r     回车
\s     shell的名称，<span class="token variable">$0</span>的基本名称
\t     当前时间（24小时） HH:MM:SS
\T     当前时间（12小时） HH:MM:SS
\@     当前时间（12小时） am/pm
\A     当前时间（24小时） HH:MM
\u     当前用户名称
\v     bash版本<span class="token punctuation">(</span>如<span class="token string">"2.00"</span><span class="token punctuation">)</span>
\V     bash版本+补丁号<span class="token punctuation">(</span>如<span class="token string">"2.00.0"</span><span class="token punctuation">)</span>
\w     当前工作目录
\W     当前工作目录的基本名称
\<span class="token operator">!</span>     该命令的历史数（在历史文件中的位置）
\#     该命令的命令数（当前shell中执行的序列位置）
\$     根用户为<span class="token string">"#"</span>，其它用户为<span class="token string">"$"</span>
\nnn   8进制数
\\     反斜杠
\<span class="token punctuation">[</span>     表示跟在后面的是非打印字符，可用于shell的颜色控制
\<span class="token punctuation">]</span>     表示非打印字符结束<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<h1 id="Ubuntu-启动项管理"><a href="#Ubuntu-启动项管理" class="headerlink" title="Ubuntu 启动项管理"></a>Ubuntu 启动项管理</h1><p>Grub Customizer工具的使用：</p>
<p>这个工具可以替代手动配置文件的操作，只需在GUI界面上配置即可达到同样的效果，原理最终也会写入到文件中。</p>
<p>Startup-manager工具已经过时了，Grub Customizer是取代品。</p>
<p>安装：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> add-apt-repository ppa:danielrichter2007/grub-customizer
<span class="token function">sudo</span> <span class="token function">apt-get</span> update
<span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> grub-customizer<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></code></pre>
<h1 id="修改-root-密码-获取-root-用户："><a href="#修改-root-密码-获取-root-用户：" class="headerlink" title="修改 root 密码, 获取 root 用户："></a>修改 root 密码, 获取 root 用户：</h1><pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">passwd</span>    <span class="token comment" spellcheck="true"># 输入两次新密码</span>
<span class="token function">su</span> root                 <span class="token comment" spellcheck="true"># 登陆 root账户</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<h1 id="Ubuntu-更新内核"><a href="#Ubuntu-更新内核" class="headerlink" title="Ubuntu 更新内核"></a>Ubuntu 更新内核</h1><p>ubuntu18.04操作系统版本先已支持在线的内核版本升级，到目前为止18.04发布版已经拥有三个小版本了1,2,3。 其中18.04.01和18.04.03版本，安装好之后默认的是4.15内核版本，但是默认支持在线安装4.18和5.0.0内核版本。</p>
<p>具体升级步骤如下：</p>
<p>升级前备份当前系统镜像<br>确认外网可用，同时配置好任意一个国内源（这里用的是网易源）<br>获取5.0.0内核版本 </p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt list <span class="token operator">|</span> <span class="token function">grep</span> linux-generic*<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>能够获取到5.0.0版本之后直接安装</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> linux-generic-hwe-18.04-edge<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>安装完成再重启一下设备新内核即可生效</p>
<p>重启后再次终端输入下面命令:</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt list <span class="token operator">|</span> <span class="token function">grep</span> linux-generic*
<span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> linux-generic-hwe-18.04-edge<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></code></pre>
<p>会提示如下</p>
<pre class="line-numbers language-bash"><code class="language-bash">正在读取软件包列表<span class="token punctuation">..</span>. 完成
正在分析软件包的依赖关系树       
正在读取状态信息<span class="token punctuation">..</span>. 完成       
linux-generic-hwe-18.04-edge 已经是最新版 <span class="token punctuation">(</span>5.3.0.19.85<span class="token punctuation">)</span>。
下列软件包是自动安装的并且现在不需要了：
  linux-headers-4.15.0-65 linux-headers-4.15.0-65-generic
  linux-image-4.15.0-65-generic linux-modules-4.15.0-65-generic
  linux-modules-extra-4.15.0-65-generic
使用<span class="token string">'sudo apt autoremove'</span>来卸载它<span class="token punctuation">(</span>它们<span class="token punctuation">)</span>。
升级了 0 个软件包，新安装了 0 个软件包，要卸载 0 个软件包，有 0 个软件包未被升级。<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p>按提示,用 sudo apt autoremove 就可以自动移除不需要的内核文件.</p>
<h1 id="Ubuntu18-04中使用texlive-texstudio搭建Latex环境"><a href="#Ubuntu18-04中使用texlive-texstudio搭建Latex环境" class="headerlink" title="Ubuntu18.04中使用texlive+texstudio搭建Latex环境"></a>Ubuntu18.04中使用texlive+texstudio搭建Latex环境</h1><h2 id="1-安装texlive"><a href="#1-安装texlive" class="headerlink" title="1.安装texlive"></a>1.安装texlive</h2><pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> texlive<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h2 id="2-安装中文字体包"><a href="#2-安装中文字体包" class="headerlink" title="2.安装中文字体包"></a>2.安装中文字体包</h2><pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> latex-cjk-all<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h2 id="3-安装texstudio"><a href="#3-安装texstudio" class="headerlink" title="3.安装texstudio"></a>3.安装texstudio</h2><pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> texstudio<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<h2 id="解决texstudio使用过程中遇到的问题："><a href="#解决texstudio使用过程中遇到的问题：" class="headerlink" title="解决texstudio使用过程中遇到的问题："></a>解决texstudio使用过程中遇到的问题：</h2><h3 id="1-GB-cpx乱码问题"><a href="#1-GB-cpx乱码问题" class="headerlink" title="1.GB.cpx乱码问题"></a>1.GB.cpx乱码问题</h3><p>在/usr/share/texmf/tex/latex/CJK/GB/下查找到GB.cpx文件并且使用一下代码替换：</p>
<pre class="line-numbers language-bash"><code class="language-bash">% This is the <span class="token function">file</span> GB.cap of the CJK package
%   <span class="token keyword">for</span> using Asian logographs <span class="token punctuation">(</span>Chinese/Japanese/Korean<span class="token punctuation">)</span> with LaTeX2e
%
% created by aloft <span class="token operator">&lt;</span>aloft@ctex.org<span class="token operator">></span> <span class="token keyword">for</span> Standard LaTeX document class.
%
% Version 4.5.2 <span class="token punctuation">(</span>18-May-2003<span class="token punctuation">)</span>
%
% <span class="token variable">$Id</span><span class="token keyword">:</span> GB.cpx,v 1.7 2003/05/20 15:51:14 aloft Exp $
%


\def\fileversion<span class="token punctuation">{</span>4.5.2<span class="token punctuation">}</span>
\def\filedate<span class="token punctuation">{</span>2003/05/18<span class="token punctuation">}</span>
\ProvidesFile<span class="token punctuation">{</span>GB.cap<span class="token punctuation">}</span><span class="token punctuation">[</span>\filedate\space\fileversion
 <span class="token keyword">for</span> Standard LaTeX document class<span class="token punctuation">]</span>


% Chinese captions
%
% character set: GB 2312-80
% encoding: EUC

\renewcommand\contentsname<span class="token punctuation">{</span>目录<span class="token punctuation">}</span>
\renewcommand\listfigurename<span class="token punctuation">{</span>插图<span class="token punctuation">}</span>
\renewcommand\listtablename<span class="token punctuation">{</span>表格<span class="token punctuation">}</span>

\@ifundefined<span class="token punctuation">{</span>chapter<span class="token punctuation">}</span>
  <span class="token punctuation">{</span>\renewcommand\refname<span class="token punctuation">{</span>参考文献<span class="token punctuation">}</span><span class="token punctuation">}</span>
  <span class="token punctuation">{</span>\renewcommand\bibname<span class="token punctuation">{</span>参考文献<span class="token punctuation">}</span><span class="token punctuation">}</span>

\renewcommand\indexname<span class="token punctuation">{</span>索引<span class="token punctuation">}</span>

\renewcommand\figurename<span class="token punctuation">{</span>Fig<span class="token punctuation">}</span>

\newcommand\codename<span class="token punctuation">{</span>代码<span class="token punctuation">}</span>

\renewcommand\tablename<span class="token punctuation">{</span>表<span class="token punctuation">}</span>

\newcommand\CJKprepartname<span class="token punctuation">{</span>第<span class="token punctuation">}</span>
\newcommand\CJKpartname<span class="token punctuation">{</span>部分<span class="token punctuation">}</span>
\newcommand\CJKthepart<span class="token punctuation">{</span>\CJKnumber<span class="token punctuation">{</span>\@arabic\c@part<span class="token punctuation">}</span><span class="token punctuation">}</span>

\@ifundefined<span class="token punctuation">{</span>chapter<span class="token punctuation">}</span><span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">{</span>
  \newcommand\CJKprechaptername<span class="token punctuation">{</span>第<span class="token punctuation">}</span>
  \newcommand\CJKchaptername<span class="token punctuation">{</span>章<span class="token punctuation">}</span>
  \newcommand\CJKthechapter<span class="token punctuation">{</span>\CJKnumber<span class="token punctuation">{</span>\@arabic\c@chapter<span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token punctuation">}</span>

\renewcommand\appendixname<span class="token punctuation">{</span>附录~\@Alph\c@chapter<span class="token punctuation">}</span>

\@ifundefined<span class="token punctuation">{</span>mainmatter<span class="token punctuation">}</span>
  <span class="token punctuation">{</span>\renewcommand\abstractname<span class="token punctuation">{</span>摘要<span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token punctuation">{</span><span class="token punctuation">}</span>

% \renewcommand\ccname<span class="token punctuation">{</span><span class="token punctuation">}</span>                     %   ?
% \renewcommand\enclname<span class="token punctuation">{</span>附件<span class="token punctuation">}</span>
% \newcommand\prepagename<span class="token punctuation">{</span><span class="token punctuation">}</span>                  %   ?
% \newcommand\postpagename<span class="token punctuation">{</span><span class="token punctuation">}</span>                 %   ?
% \renewcommand\headtoname<span class="token punctuation">{</span><span class="token punctuation">}</span>                 %   ?
% \renewcommand\seename<span class="token punctuation">{</span><span class="token punctuation">}</span>                    %   ?

\let\CJK@todaysave<span class="token operator">=</span>\today
\def\CJK@todaysmall<span class="token punctuation">{</span>~\the\year~年~\the\month~月~\the\day~日<span class="token punctuation">}</span>
\def\CJK@todaybig<span class="token punctuation">{</span>\CJKdigits<span class="token punctuation">{</span>\the\year<span class="token punctuation">}</span>年\CJKnumber<span class="token punctuation">{</span>\the\month<span class="token punctuation">}</span>月\CJKnumber<span class="token punctuation">{</span>\the\day<span class="token punctuation">}</span>日<span class="token punctuation">}</span>
\def\CJK@today<span class="token punctuation">{</span>\CJK@todaysmall<span class="token punctuation">}</span>
\renewcommand\today<span class="token punctuation">{</span>\CJK@today<span class="token punctuation">}</span>
\newcommand\CJKtoday<span class="token punctuation">[</span>1<span class="token punctuation">]</span><span class="token punctuation">[</span>1<span class="token punctuation">]</span><span class="token punctuation">{</span>%
  \ifcase<span class="token comment" spellcheck="true">#1\def\CJK@today{\CJK@todaysave}</span>
  \or\def\CJK@today<span class="token punctuation">{</span>\CJK@todaysmall<span class="token punctuation">}</span>
  \or\def\CJK@today<span class="token punctuation">{</span>\CJK@todaybig<span class="token punctuation">}</span>
  \fi<span class="token punctuation">}</span>

%
% modify the definitions of Standard LaTeX document class
%
\@ifundefined<span class="token punctuation">{</span>chapter<span class="token punctuation">}</span><span class="token punctuation">{</span>
  \def\@part<span class="token punctuation">[</span><span class="token comment" spellcheck="true">#1]#2{%</span>
      \ifnum \c@secnumdepth <span class="token operator">></span>\m@ne
        \refstepcounter<span class="token punctuation">{</span>part<span class="token punctuation">}</span>%
%       \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>part<span class="token punctuation">}</span><span class="token punctuation">{</span>\thepart\hspace<span class="token punctuation">{</span>1em<span class="token punctuation">}</span><span class="token comment" spellcheck="true">#1}%</span>
        \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>part<span class="token punctuation">}</span><span class="token punctuation">{</span>\CJKprepartname\expandafter\noexpand\CJKthepart\CJKpartname\hspace<span class="token punctuation">{</span>1em<span class="token punctuation">}</span><span class="token comment" spellcheck="true">#1}%</span>
      \else
        \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>part<span class="token punctuation">}</span><span class="token punctuation">{</span>#1<span class="token punctuation">}</span>%
      \fi
      <span class="token punctuation">{</span>\parindent \z@ \raggedright
       \interlinepenalty \@M
       \normalfont
       \ifnum \c@secnumdepth <span class="token operator">></span>\m@ne
%        \Large\bfseries \partname\nobreakspace\thepart
         \Large\bfseries \CJKprepartname\CJKthepart\CJKpartname
         \par\nobreak
       \fi
       \huge \bfseries <span class="token comment" spellcheck="true">#2%</span>
       \markboth<span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">{</span><span class="token punctuation">}</span>\par<span class="token punctuation">}</span>%
      \nobreak
      \vskip 3ex
      \@afterheading<span class="token punctuation">}</span>
<span class="token punctuation">}</span><span class="token punctuation">{</span>
  \def\@part<span class="token punctuation">[</span><span class="token comment" spellcheck="true">#1]#2{%</span>
      \ifnum \c@secnumdepth <span class="token operator">></span>-2\relax
        \refstepcounter<span class="token punctuation">{</span>part<span class="token punctuation">}</span>%
%       \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>part<span class="token punctuation">}</span><span class="token punctuation">{</span>\thepart\hspace<span class="token punctuation">{</span>1em<span class="token punctuation">}</span><span class="token comment" spellcheck="true">#1}%</span>
        \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>part<span class="token punctuation">}</span><span class="token punctuation">{</span>\CJKprepartname\expandafter\noexpand\CJKthepart\CJKpartname\hspace<span class="token punctuation">{</span>1em<span class="token punctuation">}</span><span class="token comment" spellcheck="true">#1}%</span>
      \else
        \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>part<span class="token punctuation">}</span><span class="token punctuation">{</span>#1<span class="token punctuation">}</span>%
      \fi
      \markboth<span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">{</span><span class="token punctuation">}</span>%
      <span class="token punctuation">{</span>\centering
       \interlinepenalty \@M
       \normalfont
       \ifnum \c@secnumdepth <span class="token operator">></span>-2\relax
%        \huge\bfseries \partname\nobreakspace\thepart
         \huge\bfseries \CJKprepartname\CJKthepart\CJKpartname
         \par
         \vskip 20\p@
       \fi
       \Huge \bfseries <span class="token comment" spellcheck="true">#2\par}%</span>
      \@endpart<span class="token punctuation">}</span>
  \if@twoside
    \def\chaptermark<span class="token comment" spellcheck="true">#1{%</span>
      \markboth <span class="token punctuation">{</span>\MakeUppercase<span class="token punctuation">{</span>%
        \ifnum \c@secnumdepth <span class="token operator">></span>\m@ne
          \if@mainmatter
%           \@chapapp\ \thechapter. \ %
            \CJKprechaptername\CJKthechapter\CJKchaptername \ %
          \fi
        \fi
        <span class="token comment" spellcheck="true">#1}}{}}%</span>
    \def\sectionmark<span class="token comment" spellcheck="true">#1{%</span>
      \markright <span class="token punctuation">{</span>\MakeUppercase<span class="token punctuation">{</span>%
        \ifnum \c@secnumdepth <span class="token operator">></span>\z@
%         \thesection. \ %
          \thesection \ %
        \fi
        <span class="token comment" spellcheck="true">#1}}}</span>
  \else
    \def\chaptermark<span class="token comment" spellcheck="true">#1{%</span>
      \markright <span class="token punctuation">{</span>\MakeUppercase<span class="token punctuation">{</span>%
        \ifnum \c@secnumdepth <span class="token operator">></span>\m@ne
          \if@mainmatter
%           \@chapapp\ \thechapter. \ %
            \CJKprechaptername\CJKthechapter\CJKchaptername \ %
          \fi
        \fi
        <span class="token comment" spellcheck="true">#1}}}</span>
  \fi
  \def\@chapter<span class="token punctuation">[</span><span class="token comment" spellcheck="true">#1]#2{\ifnum \c@secnumdepth >\m@ne</span>
                         \if@mainmatter
                           \refstepcounter<span class="token punctuation">{</span>chapter<span class="token punctuation">}</span>%
%                          \typeout<span class="token punctuation">{</span>\@chapapp\space\thechapter.<span class="token punctuation">}</span>%
                           \typeout<span class="token punctuation">{</span>\CJKprechaptername\CJKthechapter\CJKchaptername<span class="token punctuation">}</span>%
                           \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>chapter<span class="token punctuation">}</span>%
%                                    <span class="token punctuation">{</span>\protect\numberline<span class="token punctuation">{</span>\thechapter<span class="token punctuation">}</span><span class="token comment" spellcheck="true">#1}%</span>
                                     <span class="token punctuation">{</span>\protect\numberline<span class="token punctuation">{</span><span class="token punctuation">}</span>\CJKprechaptername%
                                      \expandafter\noexpand\CJKthechapter\CJKchaptername\hspace<span class="token punctuation">{</span>0.8em<span class="token punctuation">}</span><span class="token comment" spellcheck="true">#1}%</span>
                         \else
                           \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>chapter<span class="token punctuation">}</span><span class="token punctuation">{</span>#1<span class="token punctuation">}</span>%
                         \fi
                      \else
                        \addcontentsline<span class="token punctuation">{</span>toc<span class="token punctuation">}</span><span class="token punctuation">{</span>chapter<span class="token punctuation">}</span><span class="token punctuation">{</span>#1<span class="token punctuation">}</span>%
                      \fi
                      \chaptermark<span class="token punctuation">{</span>#1<span class="token punctuation">}</span>%
                      \addtocontents<span class="token punctuation">{</span>lof<span class="token punctuation">}</span><span class="token punctuation">{</span>\protect\addvspace<span class="token punctuation">{</span>10\p@<span class="token punctuation">}</span><span class="token punctuation">}</span>%
                      \addtocontents<span class="token punctuation">{</span>lot<span class="token punctuation">}</span><span class="token punctuation">{</span>\protect\addvspace<span class="token punctuation">{</span>10\p@<span class="token punctuation">}</span><span class="token punctuation">}</span>%
                      \if@twocolumn
                        \@topnewpage<span class="token punctuation">[</span>\@makechapterhead<span class="token punctuation">{</span>#2<span class="token punctuation">}</span><span class="token punctuation">]</span>%
                      \else
                        \@makechapterhead<span class="token punctuation">{</span>#2<span class="token punctuation">}</span>%
                        \@afterheading
                      \fi<span class="token punctuation">}</span>
  \def\@makechapterhead<span class="token comment" spellcheck="true">#1{%</span>
    \vspace*<span class="token punctuation">{</span>50\p@<span class="token punctuation">}</span>%
    <span class="token punctuation">{</span>\parindent \z@ \raggedright \normalfont
      \ifnum \c@secnumdepth <span class="token operator">></span>\m@ne
        \if@mainmatter
%         \huge\bfseries \@chapapp\space \thechapter
          \huge\bfseries \CJKprechaptername\CJKthechapter\CJKchaptername
          \par\nobreak
          \vskip 20\p@
        \fi
      \fi
      \interlinepenalty\@M
      \Huge \bfseries <span class="token comment" spellcheck="true">#1\par\nobreak</span>
      \vskip 40\p@
    <span class="token punctuation">}</span><span class="token punctuation">}</span>
  \renewcommand*\l@chapter<span class="token punctuation">[</span>2<span class="token punctuation">]</span><span class="token punctuation">{</span>%
    \ifnum \c@tocdepth <span class="token operator">></span>\m@ne
      \addpenalty<span class="token punctuation">{</span>-\@highpenalty<span class="token punctuation">}</span>%
      \vskip 1.0em \@plus\p@
%     \setlength\@tempdima<span class="token punctuation">{</span>1.5em<span class="token punctuation">}</span>%
      \setlength\@tempdima<span class="token punctuation">{</span>0em<span class="token punctuation">}</span>%
      \begingroup
        \parindent \z@ \rightskip \@pnumwidth
        \parfillskip -\@pnumwidth
        \leavevmode \bfseries
        \advance\leftskip\@tempdima
        \hskip -\leftskip
        <span class="token comment" spellcheck="true">#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par</span>
        \penalty\@highpenalty
      \endgroup
    \fi<span class="token punctuation">}</span>
\let\@appendix\appendix
\renewcommand\appendix<span class="token punctuation">{</span>\@appendix%
  \def\CJKprechaptername<span class="token punctuation">{</span>\relax<span class="token punctuation">}</span>%
  \def\CJKthechapter<span class="token punctuation">{</span>\relax<span class="token punctuation">}</span>%
  \def\CJKchaptername<span class="token punctuation">{</span>\appendixname<span class="token punctuation">}</span><span class="token punctuation">}</span>
<span class="token punctuation">}</span>  %end of \@ifundefined<span class="token punctuation">{</span>chapter<span class="token punctuation">}</span>

\def\numberline<span class="token comment" spellcheck="true">#1{\ifdim\@tempdima>0pt% </span>
  \settowidth\@tempdimb<span class="token punctuation">{</span>#1\space<span class="token punctuation">}</span>% 
  \ifdim\@tempdima<span class="token operator">&lt;</span>\@tempdimb% 
    \@tempdima<span class="token operator">=</span>\@tempdimb% 
  \fi% 
  \hb@xt@\@tempdima<span class="token punctuation">{</span>#1\hfil<span class="token punctuation">}</span>% 
  \fi<span class="token punctuation">}</span> 

\endinput<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<h3 id="2-编译后Pdf中文不显示问题"><a href="#2-编译后Pdf中文不显示问题" class="headerlink" title="2.编译后Pdf中文不显示问题"></a>2.编译后Pdf中文不显示问题</h3><p>当使用 CJK 中文包时，在 Texstudio 配置中使用 pdflatex 编译器而不是 xelatex 编译器。</p>
<p>如果使用ctex中文包时可以使用 xelatex 编译器。</p>
<hr>
<h1 id="Ubuntu18-04下安装-FFmpeg"><a href="#Ubuntu18-04下安装-FFmpeg" class="headerlink" title="Ubuntu18.04下安装 FFmpeg"></a>Ubuntu18.04下安装 FFmpeg</h1><p>在百度上看到许多安装过程特别麻烦的，还要手动下载安装。其实只需要三条命令。</p>
<p>第一步：添加源</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> add-apt-repository ppa:djcj/hybrid<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>第二步：更新源</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">apt-get</span> update<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>第三步：下载安装</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token function">install</span> ffmpeg<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>如上，就安装好了。</p>
<hr>
<h1 id="Ubuntu18-04-下安装-Matlab"><a href="#Ubuntu18-04-下安装-Matlab" class="headerlink" title="Ubuntu18.04 下安装 Matlab"></a>Ubuntu18.04 下安装 Matlab</h1><p>按照教程安装好 Matlab 后，暂时是没有应用快捷方式的，我们需要手动创建一个：</p>
<p>首先第一步：输入命令：</p>
<pre class="line-numbers language-bash"><code class="language-bash"> <span class="token function">sudo</span> gedit /usr/share/applications/Matlab.desktop<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>然后输入：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token punctuation">[</span>Desktop Entry<span class="token punctuation">]</span>
Type<span class="token operator">=</span>Application
Name<span class="token operator">=</span>Matlab 2019b
GenericName<span class="token operator">=</span>Matlab R2019b
Exec<span class="token operator">=</span>sh /home/shw/MySoftwares/Matlab/R2019b/bin/matlab <span class="token comment" spellcheck="true">#   /home/shw/MySoftwares/Matlab/R2019b 是你的安装目录，我这里安装目录不是默认的 默认的应该是/usr/local/XX/XX</span>
Icon<span class="token operator">=</span>/home/shw/MySoftwares/Matlab/R2019b/toolbox/shared/dastudio/resources/MatlabIcon.png
Terminal<span class="token operator">=</span>true
Categories<span class="token operator">=</span>Development<span class="token punctuation">;</span>Matlab<span class="token punctuation">;</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<blockquote>
<p>注意：Exec代表应用程序的位置；Icon代表应用程序图标的位置；Terminal为false表示启动时不启动命令行窗口，为true表示启动命令行窗口。</p>
</blockquote>
<h1 id="Conky安装和配置"><a href="#Conky安装和配置" class="headerlink" title="Conky安装和配置"></a>Conky安装和配置</h1><p>conky-all是支持lua的版本带有复杂的动画的需要用这个版本实现<br>安装命令:</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> apt <span class="token function">install</span> conky-all<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>主题参考 <a href="https://github.com/popindavibe/conky-grapes" target="_blank" rel="noopener">github地址</a></p>
<p>在自己的住目录下新建一个conky文件夹<em>（可以自己修改文件放置的位置要更改conky_tpl和create_config.py反正就呢么多文件里的conky/conky-grapes都要改成.conky/conky-grapes)</em></p>
<p>双击安装那几个字体</p>
<p>字体用的是灰色的不喜欢可以编辑</p>
<p>create-config.py文件</p>
<p>修改grey和lightgrey就行</p>
<p>执行python create-config.py</p>
<p>蒋多出来的 XXXX.conkyrc</p>
<p>文件改名为.conkyrc 剪切或复制到你的主目录下</p>
<p>图形配色如图</p>
<p>不喜欢蓝色的可以更改.conkyrc和conky/conky-grapes文件夹下的ring-v2.tpl和rings-v2_gen.lua文件里的所有蓝色查找替换为你喜欢的颜色</p>
<p>蓝色 0x165cc4</p>
<p>在终端中执行conky就行了（可能绘制图形较慢，等一会。）</p>
<p>conky开机自启动</p>
<p>在主目录下的.config/autostart执行以下代码</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">sudo</span> gedit conky.desktop<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>粘贴以下代码：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token punctuation">[</span>Desktop Entry<span class="token punctuation">]</span>
Type<span class="token operator">=</span>Application
Name<span class="token operator">=</span>Conky
Comment<span class="token operator">=</span>Start conky script
Exec<span class="token operator">=</span>\s/usr/bin/conky -p 10
OnlyShowIn<span class="token operator">=</span>GNOME
X-GNOME-Autostart-Phase<span class="token operator">=</span>Application
Name<span class="token punctuation">[</span>en_US<span class="token punctuation">]</span><span class="token operator">=</span>conky.desktop<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p>或者在软件</p>
<blockquote>
<p>解释：\s/usr/bin/conky -p 10 是用户登录后十秒开启防止一些奇怪的bug</p>
</blockquote>
<h1 id="nvtop-安装和配置"><a href="#nvtop-安装和配置" class="headerlink" title="nvtop 安装和配置"></a>nvtop 安装和配置</h1><p>1.安装依赖：</p>
<pre class="line-numbers language-bash"><code class="language-bash">apt <span class="token function">install</span> cmake libncurses5-dev libncursesw5-dev <span class="token function">git</span> -y<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<p>2.安装命令：</p>
<pre class="line-numbers language-bash"><code class="language-bash"><span class="token function">git</span> clone https://github.com/Syllo/nvtop.git
<span class="token function">mkdir</span> -p nvtop/build <span class="token operator">&amp;&amp;</span> <span class="token function">cd</span> nvtop/build
cmake <span class="token punctuation">..</span>

cmake <span class="token punctuation">..</span> -DNVML_RETRIEVE_HEADER_ONLINE<span class="token operator">=</span>True

<span class="token function">sudo</span> <span class="token function">make</span>

<span class="token function">sudo</span> <span class="token function">make</span> <span class="token function">install</span><span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></code></pre>
<p>3.安装完成测试</p>
<pre class="line-numbers language-bash"><code class="language-bash">nvtop<span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre>
<script>
        document.querySelectorAll('.github-emoji')
          .forEach(el => {
            if (!el.dataset.src) { return; }
            const img = document.createElement('img');
            img.style = 'display:none !important;';
            img.src = el.dataset.src;
            img.addEventListener('error', () => {
              img.remove();
              el.style.color = 'inherit';
              el.style.backgroundImage = 'none';
              el.style.background = 'none';
            });
            img.addEventListener('load', () => {
              img.remove();
            });
            document.body.appendChild(img);
          });
      </script>
            </div>
            <hr/>

            
            <style>
    #reward {
        margin: 40px 0;
        text-align: center;
    }

    #reward .reward-link {
        font-size: 1.88rem;
    }

    #reward .btn-floating:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    #rewardModal {
        width: 320px;
        height: 350px;
    }

    #rewardModal .reward-title {
        margin: 15px auto;
        padding-bottom: 5px;
    }

    #rewardModal .modal-content {
        padding: 10px;
    }

    #rewardModal .close {
        position: absolute;
        right: 15px;
        top: 15px;
        color: rgba(0, 0, 0, 0.5);
        font-size: 1.3rem;
        line-height: 20px;
        cursor: pointer;
    }

    #rewardModal .close:hover {
        color: #ef5350;
        transform: scale(1.3);
        -moz-transform:scale(1.3);
        -webkit-transform:scale(1.3);
        -o-transform:scale(1.3);
    }

    #rewardModal .reward-tabs {
        margin: 0 auto;
        width: 210px;
    }

    .reward-tabs .tabs {
        height: 38px;
        margin: 10px auto;
        padding-left: 0;
    }

    .reward-content ul {
        padding-left: 0 !important;
    }

    .reward-tabs .tabs .tab {
        height: 38px;
        line-height: 38px;
    }

    .reward-tabs .tab a {
        color: #fff;
        background-color: #ccc;
    }

    .reward-tabs .tab a:hover {
        background-color: #ccc;
        color: #fff;
    }

    .reward-tabs .wechat-tab .active {
        color: #fff !important;
        background-color: #22AB38 !important;
    }

    .reward-tabs .alipay-tab .active {
        color: #fff !important;
        background-color: #019FE8 !important;
    }

    .reward-tabs .reward-img {
        width: 210px;
        height: 210px;
    }
</style>

<div id="reward">
    <a href="#rewardModal" class="reward-link modal-trigger btn-floating btn-large waves-effect waves-light red">赏</a>

    <!-- Modal Structure -->
    <div id="rewardModal" class="modal">
        <div class="modal-content">
            <a class="close modal-close"><i class="fa fa-close"></i></a>
            <h4 class="reward-title">你的赏识是我前进的动力!</h4>
            <div class="reward-content">
                <div class="reward-tabs">
                    <ul class="tabs row">
                        <li class="tab col s6 alipay-tab waves-effect waves-light"><a href="#alipay">支付宝</a></li>
                        <li class="tab col s6 wechat-tab waves-effect waves-light"><a href="#wechat">微 信</a></li>
                    </ul>
                    <div id="alipay">
                        <img src="/medias/reward/alipay.bmp" class="reward-img" alt="支付宝打赏二维码">
                    </div>
                    <div id="wechat">
                        <img src="/medias/reward/wechat.bmp" class="reward-img" alt="微信打赏二维码">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        $('.tabs').tabs();
    });
</script>
            

            

    <div class="reprint" id="reprint-statement">
        
            <div class="reprint__author">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fa fa-user">
                        作者:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://sunhwee.com" rel="external nofollow noreferrer">洪卫</a>
                </span>
            </div>
            <div class="reprint__type">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fa fa-link">
                        文章链接:
                    </i>
                </span>
                <span class="reprint-info">
                    <a href="https://sunhwee.com/posts/62764ecd.html">https://sunhwee.com/posts/62764ecd.html</a>
                </span>
            </div>
            <div class="reprint__notice">
                <span class="reprint-meta" style="font-weight: bold;">
                    <i class="fa fa-copyright">
                        版权声明:
                    </i>
                </span>
                <span class="reprint-info">
                    本博客所有文章除特別声明外，均采用
                    <a href="https://creativecommons.org/licenses/by/4.0/deed.zh" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>
                    许可协议。转载请注明来源
                    <a href="https://sunhwee.com" target="_blank">洪卫</a>
                    !
                </span>
            </div>
        
    </div>

    <script async defer>
      document.addEventListener("copy", function (e) {
        let toastHTML = '<span>复制成功，请遵循本文的转载规则</span><button class="btn-flat toast-action" onclick="navToReprintStatement()" style="font-size: smaller">查看</a>';
        M.toast({html: toastHTML})
      });

      function navToReprintStatement() {
        $("html, body").animate({scrollTop: $("#reprint-statement").offset().top - 80}, 800);
      }
    </script>



            <!-- 
            <div class="reprint1">
                <p>
                    <span class="reprint1-tip">
                        <i class="fa fa-exclamation-circle"></i>&nbsp;&nbsp;版权声明:
                    </span>
                    <a href="https://sunhwee.com" class="b-link-green">洪卫の博客</a>
                    <i class="fa fa-angle-right fa-lg fa-fw text-color"></i>
                    <a href="/posts/62764ecd.html" class="b-link-green">Ubuntu Configure</a>
                </p>
            </div> -->
            <div class="tag_share" style="display: block;">
                <div class="post-meta__tag-list" style="display: inline-block;">
                    
                        <div class="article-tag">
                            
                                <a href="/tags/Ubuntu/">
                                    <span class="chip bg-color">Ubuntu</span>
                                </a>
                            
                                <a href="/tags/Linux/">
                                    <span class="chip bg-color">Linux</span>
                                </a>
                            
                        </div>
                    
                </div>
                <div class="post_share" style="zoom: 80%; width: fit-content; display: inline-block; float: right; margin: -0.15rem 0;">
                    <!-- <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css"> -->
<!-- <link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">

<div id="article-share">
    
    <div class="social-share" data-disabled="qzone" data-wechat-qrcode-helper="<p>微信里点“发现”->“扫一扫”二维码便可查看分享。</p>"></div>
    
</div> -->

<!-- <script src="/libs/share/js/social-share.min.js"></script> -->
<!-- <script src="/libs/share/js/social-share.min.js"></script> -->

<link rel="stylesheet" type="text/css" href="/libs/share/css/share.min.css">

<div id="article-share">
    
    
    <div class="social-share" data-sites="twitter,facebook,google,qq,qzone,wechat,weibo,douban,linkedin" data-wechat-qrcode-helper="<p>微信扫一扫即可分享！</p>"></div>
    <script src="/libs/share/js/social-share.min.js"></script>
    

    

</div>

                </div>
            </div>
        </div>
    </div>

    
        <link rel="stylesheet" href="/libs/gitalk/gitalk.css">
<link rel="stylesheet" href="/css/my-gitalk.css">

<div class="card gitalk-card" data-aos="fade-up">
    <div id="gitalk-container" class="card-content"></div>
</div>

<script src="/libs/gitalk/gitalk.min.js"></script>
<script>
    let gitalk = new Gitalk({
        clientID: 'ffe0ea359d9892dfbadb',
        clientSecret: '765e3f453b6537e292b3f4132db5bda05d18bffc',
        repo: 'shw2018.github.io',
        owner: 'shw2018',
        admin: ["shw2018"],
        id: 'posts/62764ecd.html',
        distractionFreeMode: false  // Facebook-like distraction free mode
    });

    gitalk.render('gitalk-container');
</script>
    

    

    

    

    
        <style>
    .valine-card {
        margin: 1.5rem auto;
    }

    .valine-card .card-content {
        padding: 20px 20px 5px 20px;
    }
    /* valine 评论框增加背景图片 */
    #vcomments textarea {
        box-sizing: border-box;
        background: url("/medias/comment_bg.png") 100% 100% no-repeat;
    }

    #vcomments input[type=text],
    #vcomments input[type=email],
    #vcomments input[type=url],
    #vcomments textarea {
        box-sizing: border-box;
    }

    #vcomments p {
        margin: 2px 2px 10px;
        font-size: 1.05rem;
        line-height: 1.78rem;
    }

    #vcomments blockquote p {
        text-indent: 0.2rem;
    }

    #vcomments a {
        padding: 0 2px;
        color: #42b983;
        font-weight: 500;
        /* text-decoration: underline; */
        text-decoration: none;
    }

    #vcomments img {
        max-width: 100%;
        height: auto;
        cursor: pointer;
    }

    #vcomments ol li {
        list-style-type: decimal;
    }

    #vcomments ol,
    ul {
        display: block;
        padding-left: 2em;
        word-spacing: 0.05rem;
    }

    #vcomments ul li,
    ol li {
        display: list-item;
        line-height: 1.8rem;
        font-size: 1rem;
    }

    #vcomments ul li {
        list-style-type: disc;
    }

    #vcomments ul ul li {
        list-style-type: circle;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    #vcomments table, th, td {
        border: 0;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments h1 {
        font-size: 1.85rem;
        font-weight: bold;
        line-height: 2.2rem;
    }

    #vcomments h2 {
        font-size: 1.65rem;
        font-weight: bold;
        line-height: 1.9rem;
    }

    #vcomments h3 {
        font-size: 1.45rem;
        font-weight: bold;
        line-height: 1.7rem;
    }

    #vcomments h4 {
        font-size: 1.25rem;
        font-weight: bold;
        line-height: 1.5rem;
    }

    #vcomments h5 {
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.4rem;
    }

    #vcomments h6 {
        font-size: 1rem;
        line-height: 1.3rem;
    }

    #vcomments p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    #vcomments hr {
        margin: 12px 0;
        border: 0;
        border-top: 1px solid #ccc;
    }

    #vcomments blockquote {
        margin: 15px 0;
        border-left: 5px solid #42b983;
        padding: 1rem 0.8rem 0.3rem 0.8rem;
        color: #666;
        background-color: rgba(66, 185, 131, .1);
    }

    #vcomments pre {
        font-family: monospace, monospace;
        padding: 1.2em;
        margin: .5em 0;
        background: #272822;
        overflow: auto;
        border-radius: 0.3em;
        tab-size: 4;
    }

    #vcomments code {
        font-family: monospace, monospace;
        padding: 1px 3px;
        font-size: 0.92rem;
        color: #e96900;
        background-color: #f8f8f8;
        border-radius: 2px;
    }

    #vcomments pre code {
        font-family: monospace, monospace;
        padding: 0;
        color: #e8eaf6;
        background-color: #272822;
    }

    #vcomments pre[class*="language-"] {
        padding: 1.2em;
        margin: .5em 0;
    }

    #vcomments code[class*="language-"],
    pre[class*="language-"] {
        color: #e8eaf6;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }

    #vcomments b,
    strong {
        font-weight: bold;
    }

    #vcomments dfn {
        font-style: italic;
    }

    #vcomments small {
        font-size: 85%;
    }

    #vcomments cite {
        font-style: normal;
    }

    #vcomments mark {
        background-color: #fcf8e3;
        padding: .2em;
    }

    #vcomments table, th, td {
        padding: 12px 13px;
        border: 1px solid #dfe2e5;
    }

    table tr:nth-child(2n), thead {
        background-color: #fafafa;
    }

    #vcomments table th {
        background-color: #f2f2f2;
        min-width: 80px;
    }

    #vcomments table td {
        min-width: 80px;
    }

    #vcomments [type="checkbox"]:not(:checked), [type="checkbox"]:checked {
        position: inherit;
        margin-left: -1.3rem;
        margin-right: 0.4rem;
        margin-top: -1px;
        vertical-align: middle;
        left: unset;
        visibility: visible;
    }

    /* 修复评论第一行位置错位 */
    .v .vlist .vcard {
    padding-top: 2.5em !important ;
    }
</style>

<div class="card valine-card" data-aos="fade-up">
    <div id="vcomments" class="card-content"></div>
</div>

<script src="/libs/valine/av-min.js"></script>
<script src="/libs/valine/Valine.min.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="/libs//libs/jQuery-emoji/dist/css/jquery.emoji.css">
<script src="/libs//libs/jQuery-emoji/dist/js/jquery.emoji.min.js"></script>
<script src="/libs//libs/jQuery-emoji/dist/js/emoji.list.js"></script> -->
<script>
    new Valine({
        el: '#vcomments',
        appId: 'lLPMWOb3ctIegVovkXFVQHVz-gzGzoHsz',
        appKey: 'rR3LIiSBOYukuM3gLpL76rQt',
        notify: 'true' === 'true',
        verify: 'true' === 'true',
        visitor: 'true' === 'true',
        avatar: 'https://s.gravatar.com/avatar/0007991f99268c04f1aa4cdd9bea93b4?s=80',
        pageSize: '10',
        lang: 'zh-cn',
        placeholder: '没有Github账号的在这里留言评论～',

    });

//     function parse_emoji() {
//     jQuery(".vcontent").emojiParse({
//       basePath: '/libs/jQuery-emoji/images/emoji',
//       icons: emojiLists   // 注：详见 js/emoji.list.js
//     });
//   }
  
//   setTimeout(function() {
//     // jQuery emoji 解析
//     parse_emoji();
//     // jquery emoji 初始化
//     jQuery(".veditor").emoji({
//       showTab: true,
//       animation: 'slide',
//       basePath: '/libs/jQuery-emoji/images/emoji',
//       icons: emojiLists  // 注：详见 js/emoji.list.js
//     });
//     jQuery(".vmore").on("click", function() {
//       setTimeout(function() {
//         parse_emoji();
//       }, 500);
//     });
//   }, 800)

</script>
    

    

<article id="prenext-posts" class="prev-next articles">
    <div class="row article-row">
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge left-badge text-color">
                <i class="fa fa-chevron-left"></i>&nbsp;上一篇</div>
            <div class="card">
                <a href="/posts/6e2d0838.html">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/18.jpg" class="responsive-img" alt="oh-my-zsh 配置">
                        
                        <span class="card-title">oh-my-zsh 配置</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            Oh-My-Zsh的配置与使用什么是Shell？相对于内核来说，Shell是Linux/Unix的一个外壳，它负责外界与Linux内核的交互，接收用户或其他应用程序的命令，然后把这些命令转化成内核能理解的语言，传给内核，内核是真正干活的，干
                        
                    </div>
                    <div class="publish-info">
                        <span class="publish-date">
                            <i class="fa fa-clock-o fa-fw icon-date"></i>2019-10-19
                        </span>
                        <span class="publish-author">
                            
                            <i class="fa fa-bookmark fa-fw icon-category"></i>
                            
                            <a href="/categories/Ubuntu/" class="post-category" target="_blank">
                                    Ubuntu
                                </a>
                            
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/Ubuntu/" target="_blank">
                        <span class="chip bg-color">Ubuntu</span>
                    </a>
                    
                    <a href="/tags/zsh/" target="_blank">
                        <span class="chip bg-color">zsh</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
        
        <div class="article col s12 m6" data-aos="fade-up">
            <div class="article-badge right-badge text-color">
                下一篇&nbsp;<i class="fa fa-chevron-right"></i>
            </div>
            <div class="card">
                <a href="/posts/d2f32f86.html">
                    <div class="card-image">
                        
                        
                        <img src="/medias/featureimages/19.jpg" class="responsive-img" alt="2020年，计算机视觉领域会哪些新的研究方向值得提前探索？">
                        
                        <span class="card-title">2020年，计算机视觉领域会哪些新的研究方向值得提前探索？</span>
                    </div>
                </a>
                <div class="card-content article-content">
                    <div class="summary block-with-text">
                        
                            前言结合计算机视觉、机器人领域5大顶会（CVPR/ICCV/IROS/ICRA/ECCV），以及产业界的需求，总结3个当下热门及前沿的研究领域。
三维视觉三维视觉是传统的研究领域，但最近 5 年内得到快速发展。三维视觉主要研究内容有：三维感
                        
                    </div>
                    <div class="publish-info">
                            <span class="publish-date">
                                <i class="fa fa-clock-o fa-fw icon-date"></i>2019-10-17
                            </span>
                        <span class="publish-author">
                            
                            <i class="fa fa-bookmark fa-fw icon-category"></i>
                            
                            <a href="/categories/计算机视觉/" class="post-category" target="_blank">
                                    计算机视觉
                                </a>
                            
                            
                        </span>
                    </div>
                </div>
                
                <div class="card-action article-tags">
                    
                    <a href="/tags/深度学习/" target="_blank">
                        <span class="chip bg-color">深度学习</span>
                    </a>
                    
                    <a href="/tags/计算机视觉/" target="_blank">
                        <span class="chip bg-color">计算机视觉</span>
                    </a>
                    
                </div>
                
            </div>
        </div>
        
    </div>
</article>
</div>


<script>
    $('#articleContent').on('copy', function (e) {
        // IE8 or earlier browser is 'undefined'
        if (typeof window.getSelection === 'undefined') return;

        var selection = window.getSelection();
        // if the selection is short let's not annoy our users.
        if (('' + selection).length < Number.parseInt('120')) {
            return;
        }

        // create a div outside of the visible area and fill it with the selected text.
        var bodyElement = document.getElementsByTagName('body')[0];
        var newdiv = document.createElement('div');
        newdiv.style.position = 'absolute';
        newdiv.style.left = '-99999px';
        bodyElement.appendChild(newdiv);
        newdiv.appendChild(selection.getRangeAt(0).cloneContents());

        // we need a <pre> tag workaround.
        // otherwise the text inside "pre" loses all the line breaks!
        if (selection.getRangeAt(0).commonAncestorContainer.nodeName === 'PRE') {
            newdiv.innerHTML = "<pre>" + newdiv.innerHTML + "</pre>";
        }

        var url = document.location.href;
        newdiv.innerHTML += '<br />'
            + '来源: 洪卫の博客<br />'
            + '作者: 洪卫<br />'
            + '文章链接: <a href="' + url + '">' + url + '</a><br />'
            + '本文章著作权归作者所有，任何形式的转载都请注明出处。';

        selection.selectAllChildren(newdiv);
        window.setTimeout(function () {bodyElement.removeChild(newdiv);}, 200);
    });
</script>


<!-- shw2018 洪卫 add 2019.10.15 -->
<!-- 代码块功能依赖 -->

    <script type="text/javascript" src="/libs/codeBlock/codeBlockFuction.js"></script>
    
    
    <!-- 代码语言 -->
    
    <script type="text/javascript" src="/libs/codeBlock/codeLang.js"></script>
    
        
    <!-- 代码块复制 -->
    
    <script type="text/javascript" src="/libs/codeBlock/codeCopy.js"></script>
    <script type="text/javascript" src="/libs/codeBlock/clipboard.min.js"></script>
    
    
    <!-- 代码块收缩 -->
    
    <script type="text/javascript" src="/libs/codeBlock/codeShrink.js"></script>
    
    
    <!-- 代码块折行 -->
    
    <style type="text/css">
    code[class*="language-"], pre[class*="language-"] { white-space: pre !important; }
    </style>
    
    
    </div>
    <div id="toc-aside" class="expanded col l3 hide-on-med-and-down">
        <div class="toc-widget">
            <div class="toc-title"><i class="fa fa-list-alt"></i>&nbsp;&nbsp;目录</div>
            <div id="toc-content"></div>
        </div>
    </div>
</div>

<!-- TOC 悬浮按钮. -->

<div id="floating-toc-btn" class="hide-on-med-and-down">
    <!-- <a class="btn-floating btn-large bg-color"> -->
    <a class="btn-floating btn-large ">    <!-- 去掉按键 bg-color  洪卫 shw2018 modify 2019.09.13-->
        <i class="fa fa-list"></i>
    </a>
</div>


<script src="/libs/tocbot/tocbot.min.js"></script>
<script>
    $(function () {
        tocbot.init({
            tocSelector: '#toc-content',
            contentSelector: '#articleContent',
            headingsOffset: -($(window).height() * 0.4 - 45),
            // headingsOffset: -205,
            headingSelector: 'h1, h2, h3, h4, h5'
        });

        // modify the toc link href to support Chinese.
        let i = 0;
        let tocHeading = 'toc-heading-';
        $('#toc-content a').each(function () {
            $(this).attr('href', '#' + tocHeading + (++i));
        });

        // modify the heading title id to support Chinese.
        i = 0;
        $('#articleContent').children('h1, h2, h3, h4, h5').each(function () {
            $(this).attr('id', tocHeading + (++i));
        });

        // Set scroll toc fixed.
        let tocHeight = parseInt($(window).height() * 0.4 - 64);
        let $tocWidget = $('.toc-widget');
        $(window).scroll(function () {
            let scroll = $(window).scrollTop();
            /* add post toc fixed. */
            if (scroll > tocHeight) {
                $tocWidget.addClass('toc-fixed');
            } else {
                $tocWidget.removeClass('toc-fixed');
            }
        });

        
        /* 修复文章卡片 div 的宽度. */
        let fixPostCardWidth = function (srcId, targetId) {
            let srcDiv = $('#' + srcId);
            if (srcDiv.length === 0) {
                return;
            }

            let w = srcDiv.width();
            if (w >= 450) {
                w = w + 21;
            } else if (w >= 350 && w < 450) {
                w = w + 18;
            } else if (w >= 300 && w < 350) {
                w = w + 16;
            } else {
                w = w + 14;
            }
            $('#' + targetId).width(w);
        };

        // 切换TOC目录展开收缩的相关操作.
        const expandedClass = 'expanded';
        let $tocAside = $('#toc-aside');
        let $mainContent = $('#main-content');
        $('#floating-toc-btn .btn-floating').click(function () {
            if ($tocAside.hasClass(expandedClass)) {
                $tocAside.removeClass(expandedClass).slideUp(500);
                $mainContent.removeClass('l9');
            } else {
                $tocAside.addClass(expandedClass).slideDown(500);
                $mainContent.addClass('l9');
            }
            fixPostCardWidth('artDetail', 'prenext-posts');
        });
        
    });
</script>
    

</main>


        <footer class="page-footer bg-color">
    <div class="container row center-align">
        <div class="col s12 m8 l8 copy-right">
            Copyright&copy; 2019 Hongwei. <span class="with-love" id="heart"><i class="fa fa-heart" style="color:#ff71a8"></i> </span> 渝ICP备19012360号

            <br>
            <span id="sitetime"></span><span class="my-face">ღゝ◡╹)ノ♡</span>
            <br>

            

            
                    
                        <span id="busuanzi_container_site_pv" style='display:none'></span>
                        总访问量: <span id="busuanzi_value_site_pv" class="white-color"></span>
                    
        
                    
                        <span id="busuanzi_container_site_uv" style='display:none'></span>
                        人次&nbsp; | &nbsp;访客人数: <span id="busuanzi_value_site_uv" class="white-color"></span> 人
                    
    
            

            
                &nbsp; | &nbsp;字数统计:&nbsp;
                <span class="white-color">75.7k</span> 字
            

            
            <br>

            <!-- 友盟站点统计 洪卫 shw2018 add 2019.09.12  -->
            <script type="text/javascript">
                var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");
                document.write(unescape("%3Cspan id='cnzz_stat_icon_1278019489'%3E%3C/span%3E%3Cscript src='" +
                    cnzz_protocol +
                    "s9.cnzz.com/z_stat.php%3Fid%3D1278019489%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"
                    ));
            </script>

        </div>

        <div class="col s12 m4 l4 social-link social-statis">
    <a href="https://github.com/shw2018" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
        <i class="fa fa-github"></i>
    </a>


 
    <a href="https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=948840751@qq.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fa fa-envelope-open"></i>
    </a>




    <a href="https://zhihu.com/people/hongwei-60-34" class="tooltipped" target="_blank" data-tooltip="访问我的知乎" data-position="top" data-delay="50">
        <i class="fa fa-inverse">知</i>
    </a>



    <a href="http://wpa.qq.com/msgrd?v=3&uin=948840751&site=qq&menu=yes" class="tooltipped" target="_blank" data-tooltip="访问我的QQ空间" data-position="top" data-delay="50">
        <i class="fa fa-qq"></i>
    </a>



    <a href="https://weibo.com/3010027571" class="tooltipped" target="_blank" data-tooltip="关注我的微博" data-position="top" data-delay="50">
        <i class="fa fa-weibo"></i>
    </a>



    <a href="/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
        <i class="fa fa-rss"></i>
    </a>
</div>

    </div>
</footer>

<div class="progress-bar"></div>

<!-- 不蒜子计数初始值纠正 -->
<script>
    $(document).ready(function () {

        var int = setInterval(fixCount, 50);
        var pvcountOffset = 10000;
        var uvcountOffset = 4000;

        function fixCount() {
            if (document.getElementById("busuanzi_container_site_pv").style.display != "none") {
                $("#busuanzi_value_site_pv").html(parseInt($("#busuanzi_value_site_pv").html()) +
                    pvcountOffset);
                clearInterval(int);
            }
            if ($("#busuanzi_container_site_pv").css("display") != "none") {
                $("#busuanzi_value_site_uv").html(parseInt($("#busuanzi_value_site_uv").html()) +
                    uvcountOffset); // 加上初始数据 
                clearInterval(int);
            }
        }
    });
</script>

<script language=javascript>
    function siteTime() {
        window.setTimeout("siteTime()", 1000);
        var seconds = 1000;
        var minutes = seconds * 60;
        var hours = minutes * 60;
        var days = hours * 24;
        var years = days * 365;
        var today = new Date();
        var todayYear = today.getFullYear();
        var todayMonth = today.getMonth() + 1;
        var todayDate = today.getDate();
        var todayHour = today.getHours();
        var todayMinute = today.getMinutes();
        var todaySecond = today.getSeconds();

        /* Date.UTC() -- 返回date对象距世界标准时间(UTC)1970年1月1日午夜之间的毫秒数(时间戳)
        year - 作为date对象的年份，为4位年份值
        month - 0-11之间的整数，做为date对象的月份
        day - 1-31之间的整数，做为date对象的天数
        hours - 0(午夜24点)-23之间的整数，做为date对象的小时数
        minutes - 0-59之间的整数，做为date对象的分钟数
        seconds - 0-59之间的整数，做为date对象的秒数
        microseconds - 0-999之间的整数，做为date对象的毫秒数 */

        var t1 = Date.UTC(2019, 08, 10, 00, 00, 00); //北京时间2019-8-1 00:00:00
        var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
        var diff = t2 - t1;
        var diffYears = Math.floor(diff / years);
        var diffDays = Math.floor((diff / days) - diffYears * 365);
        var diffHours = Math.floor((diff - (diffYears * 365 + diffDays) * days) / hours);
        var diffMinutes = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours) / minutes);
        var diffSeconds = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours - diffMinutes *
            minutes) / seconds);
        document.getElementById("sitetime").innerHTML = "本站已勉强运行 " + diffYears + " 年 " + diffDays + " 天 " + diffHours +
            " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒" ;
    } /*因为建站时间还没有一年，就将之注释掉了。需要的可以取消*/
    siteTime();
</script>

<!-- 鼠标点击烟花爆炸效果  洪卫 shw2018 add 2019.09.09 -->


<!-- 在线聊天工具  洪卫 shw2018 add 2019.09.11 -->
<!-- <script src="//code.tidio.co/rwjwdlfhkt9pp7zjsjcva0ug96bvfhss.js"></script> -->

<!-- 代码高亮  洪卫 shw2018 add 2019.09.11 -->
<!-- <script src="/libs/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script> -->



        <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fa fa-search"></i>&nbsp;&nbsp;搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>
<!-- 洪卫 shw2018 modify 2019.08.30 -->
<script src="/js/search.js"></script>
<!-- <script src="/js/search.js"></script> -->
<script type="text/javascript">
$(function () {
    searchFunc("/" + "search.xml", 'searchInput', 'searchResult');
});
</script>
        <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fa fa-angle-up"></i>
    </a>
</div>


        <script src="/libs/materialize/materialize.min.js"></script>
        <script src="/libs/masonry/masonry.pkgd.min.js"></script>
        <script src="/libs/aos/aos.js"></script>
        <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
        <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
        <script src="/js/matery.js"></script>

        <!-- Global site tag (gtag.js) - Google Analytics -->

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-146860938-1"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'UA-146860938-1');
</script>



        
            <script src="/libs/others/clicklove.js"></script>
        

        
            <script async src="/libs/others/busuanzi.pure.mini.js"></script>
        

        <!-- 洪卫 shw2018 add 2019.08.28 -->
        <script type="text/javascript">
            var OriginTitile = document.title,
                st;
            document.addEventListener("visibilitychange", function () {
                document.hidden ? (document.title = "看不见我🙈~看不见我🙈~", clearTimeout(st)) : (document.title =
                    "(๑•̀ㅂ•́) ✧被发现了～", st = setTimeout(function () {
                        document.title = OriginTitile
                    }, 3e3))
            })
        </script>

        <!-- 天气接口控件  洪卫 shw2018 add 2019.09.09 -->
        
            <!-- 天气接口插件  洪卫 shw2018 add 2019.09.09 -->
<style type="text/css">
  #weather-float-he {
    position: absolute;
    z-index: 9999;
    padding: 0px;
    top: 8px;
    left: 8px;
  }
</style>

<script type="text/javascript">
  WIDGET = {
    FID: '1tFpFZ5Mtj'
  }
</script>
<!-- <script type="text/javascript" src="https://apip.weatherdt.com/float/static/js/r.js?v=1111"></script> -->

<script type="text/javascript">
  //只在桌面版网页启用特效
  var windowWidth = $(window).width();
  if (windowWidth > 768) {
    document.write('<script type="text/javascript" src="https://apip.weatherdt.com/float/static/js/r.js?v=1111"><\/script>');
  }
</script>
        

        <!-- 鼠标点击烟花爆炸效果  洪卫 shw2018 add 2019.09.09 -->
        

        <!-- 背景雪花飘落特效洪卫 shw2018 add 2019.09.10 -->
        
            <script type="text/javascript">
            //只在桌面版网页启用特效
            var windowWidth = $(window).width();
            if (windowWidth > 768) {
                document.write('<script type="text/javascript" src="/js/sakura.js"><\/script>');
            }
            </script>
        

        <!-- 鼠标点击文字特效 洪卫 shw2018 add 2019.09.10-->
        

        <!-- 背景雪花飘落特效 洪卫 shw2018 add 2019.09.10 -->
        

        <!-- 在线聊天工具  洪卫 shw2018 add 2019.09.11 -->
        
            <script src="//code.tidio.co/rwjwdlfhkt9pp7zjsjcva0ug96bvfhss.js"></script>
            <!--  在线聊天位置自定义  洪卫 shw2018 add 2019.09.13  -->
            <script> 
                $(document).ready(function () {

                    setInterval(change_Tidio, 50);  
                    function change_Tidio() { 

                        var tidio=$("#tidio-chat iframe");
                        if(tidio.css("display")=="block"&& $(window).width()>977 ){
                            document.getElementById("tidio-chat-iframe").style.bottom= ($("div#backTop.top-scroll").css("display")=="none" &&$(window).width()>977)>0? "-40px" : ($("div.toc-title").length&&$(window).width()>977)>0?"80px":"20px";   
                            document.getElementById("tidio-chat-iframe").style.right="-15px";   
                            document.getElementById("tidio-chat-iframe").style.height=parseInt(tidio.css("height"))>=520?"520px":tidio.css("height");
                            document.getElementById("tidio-chat-iframe").style.zIndex="997";
                        } 
                        else if(tidio.css("display")=="block"&&$(window).width()>601 &&$(window).width()<992 ){
                            document.getElementById("tidio-chat-iframe").style.bottom= ($("div#backTop.top-scroll").css("display")=="none" && 601< $(window).width()<992)>0? "-40px":"20px" ;   
                            document.getElementById("tidio-chat-iframe").style.right="-15px"; 
                            document.getElementById("tidio-chat-iframe").style.zIndex="997";
                        }
                        else if(tidio.css("display")=="block"&&$(window).width()<601 && parseInt(tidio.css("height"))<230){
                            document.getElementById("tidio-chat-iframe").style.bottom= ($("div#backTop.top-scroll").css("display")=="none" && $(window).width()<601)>0? "-10px":"45px" ;   
                            document.getElementById("tidio-chat-iframe").style.zIndex="997";
                        }

                        if( tidio.css("display")=="block"&&$(window).width()<601 && parseInt(tidio.css("height"))>=230){
                            document.getElementById("tidio-chat-iframe").style.zIndex="998";
                        }
                    } 
                }); 
            </script>
        

        <!--  html 预加载脚本  洪卫 shw2018 add 2019.09.12  -->
        <script src="/js/instant.page.js" type="module"></script>

        <!-- 背景 canvas-nest  洪卫 shw 2018  add 2019.09.15-->
        

        <!-- 背景静止彩带  洪卫 shw 2018  add 2019.09.15-->
        

        <!-- 背景动态彩带 洪卫 shw 2018  add 2019.09.15-->
        
            <script type="text/javascript">
            var windowWidth = $(window).width();
            if (windowWidth > 992) {
                document.write('<script type="text/javascript" src="/libs/background/ribbon-dynamic.js"><\/script>');
            }
            </script>
        

        <!-- <script src='https://cdn.jsdelivr.net/gh/fcmam5/nightly.js@v1.0/dist/nightly.min.js'></script> -->

    </body>
</html>